<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkIMContextSimple</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="MiscObjects.html" title="杂项">
<link rel="prev" href="gtk3-GtkHandleBox.html" title="GtkHandleBox">
<link rel="next" href="gtk3-GtkIMMulticontext.html" title="GtkIMMulticontext">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkHandleBox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MiscObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkIMMulticontext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkIMContextSimple.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkIMContextSimple.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkIMContextSimple"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkIMContextSimple.top_of_page"></a>GtkIMContextSimple</span></h2>
<p>GtkIMContextSimple — An input method context supporting table-based input methods</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkIMContextSimple.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkIMContextSimple.html#GtkIMContextSimple" title="struct GtkIMContextSimple">GtkIMContextSimple</a>;
<a class="link" href="gtk3-GtkIMContext.html#GtkIMContext" title="struct GtkIMContext"><span class="returnvalue">GtkIMContext</span></a> *      <a class="link" href="gtk3-GtkIMContextSimple.html#gtk-im-context-simple-new" title="gtk_im_context_simple_new ()">gtk_im_context_simple_new</a>           (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkIMContextSimple.html#gtk-im-context-simple-add-table" title="gtk_im_context_simple_add_table ()">gtk_im_context_simple_add_table</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkIMContextSimple.html#GtkIMContextSimple" title="struct GtkIMContextSimple"><span class="type">GtkIMContextSimple</span></a> *context_simple</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_seq_len</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_seqs</code></em>);
#define             <a class="link" href="gtk3-GtkIMContextSimple.html#GTK-MAX-COMPOSE-LEN:CAPS" title="GTK_MAX_COMPOSE_LEN">GTK_MAX_COMPOSE_LEN</a>
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkIMContextSimple.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="gtk3-GtkIMContextSimple.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkIMContextSimple"></a><h3>struct GtkIMContextSimple</h3>
<pre class="programlisting">struct GtkIMContextSimple {
  GtkIMContext object;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-im-context-simple-new"></a><h3>gtk_im_context_simple_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkIMContext.html#GtkIMContext" title="struct GtkIMContext"><span class="returnvalue">GtkIMContext</span></a> *      gtk_im_context_simple_new           (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkIMContextSimple.html#GtkIMContextSimple" title="struct GtkIMContextSimple"><span class="type">GtkIMContextSimple</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkIMContextSimple.html#GtkIMContextSimple" title="struct GtkIMContextSimple"><span class="type">GtkIMContextSimple</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-im-context-simple-add-table"></a><h3>gtk_im_context_simple_add_table ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_im_context_simple_add_table     (<em class="parameter"><code><a class="link" href="gtk3-GtkIMContextSimple.html#GtkIMContextSimple" title="struct GtkIMContextSimple"><span class="type">GtkIMContextSimple</span></a> *context_simple</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_seq_len</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_seqs</code></em>);</pre>
<p>
Adds an additional table to search to the input context.
Each row of the table consists of <em class="parameter"><code>max_seq_len</code></em> key symbols
followed by two <a href="../glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> interpreted as the high and low
words of a <span class="type">gunicode</span> value. Tables are searched starting
from the last added.
</p>
<p>
The table must be sorted in dictionary order on the
numeric value of the key symbol fields. (Values beyond
the length of the sequence should be zero.)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context_simple</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkIMContextSimple.html#GtkIMContextSimple" title="struct GtkIMContextSimple"><span class="type">GtkIMContextSimple</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>the table</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max_seq_len</code></em> :</span></p></td>
<td>Maximum length of a sequence in the table
(cannot be greater than <a class="link" href="gtk3-GtkIMContextSimple.html#GTK-MAX-COMPOSE-LEN:CAPS" title="GTK_MAX_COMPOSE_LEN"><span class="type">GTK_MAX_COMPOSE_LEN</span></a>)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_seqs</code></em> :</span></p></td>
<td>number of sequences in the table</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GTK-MAX-COMPOSE-LEN:CAPS"></a><h3>GTK_MAX_COMPOSE_LEN</h3>
<pre class="programlisting">#define GTK_MAX_COMPOSE_LEN 7
</pre>
<p>
The maximum length of sequences in compose tables.
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>